import React from 'react';
import styles from './styles'
import { View, Text } from 'react-native';
type PropsType = {
  title:string,
  children?:any
}
const HomeHeader = (props:PropsType) => {
  return (
    <>
    <View style={styles.header}>
      <View>
        <Text style={styles.title}>{props.title}</Text>
      </View>
      {props.children}
    </View>
    </>
  )
};

export default HomeHeader;